﻿<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/Provider/CarInsurance/Liberty_CarInsurance.master"
    CodeFile="ProviderCarOccupationType.aspx.cs" Inherits="Provider_CarInsurance_ProviderCarOccupationType" %>

<%@ Register Src="~/controls/usrDate.ascx" TagName="usrDate" TagPrefix="uc1" %>
<asp:Content ID="Content1" runat="server" ContentPlaceHolderID="ContentPlaceHolder1">
   <script src="~/controls/CE_Date.js" type="text/javascript"></script>
    <div class="provider_inner">
        <h1>
            Add/Edit Occupation Type<asp:Label ID="lblCarOccupationTypeId" runat="server" Text="0"
                Visible="false"></asp:Label></h1>
        <fieldset>
            <dl>
                <dt>
                    <label>
                        Your Occupation Type</label></dt>
                <dd>
                    <asp:DropDownList ID="ddlOccupationType" runat="server" class="text" AutoPostBack="true"
                        OnSelectedIndexChanged="ddlOccupationType_SelectedIndexChanged">
                        <asp:ListItem Value="-1">Select</asp:ListItem>
                        <asp:ListItem Value="1">Indoor</asp:ListItem>
                        <asp:ListItem Value="2">Outdoor</asp:ListItem>
                    </asp:DropDownList>
                    <asp:RequiredFieldValidator ID="rfvYourCoverageType" runat="server" ControlToValidate="ddlOccupationType"
                        ErrorMessage="Select occupation type" ValidationGroup="occupation"></asp:RequiredFieldValidator>
                </dd>
            </dl>
            <dl>
                <dt>
                    <label>
                        Occupation Rate</label></dt>
                <dd>
                    <asp:TextBox ID="txtOccupationRate" runat="server"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rfvCoverageRate" runat="server" ControlToValidate="txtOccupationRate"
                        ErrorMessage="Enter your occupation rate." ValidationGroup="occupation" Display="Dynamic"></asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="revCoverageRate" runat="server" ControlToValidate="txtOccupationRate"
                        ErrorMessage="Occupation rate value is not valid." ValidationGroup="occupation"
                        ValidationExpression="^[0-9]+(\.[0-9]{1,2})?$"></asp:RegularExpressionValidator>
                </dd>
            </dl>
              <dl>
                <dt>
                    <label>
                        Schedule Rate Update</label></dt>
                <dd>
                   <asp:RadioButtonList runat="server" ID="rdoEffectivity"  RepeatDirection="Horizontal" AutoPostBack="true" OnSelectedIndexChanged="EffectiveWhen">
                   <asp:ListItem Value="Yes">Yes</asp:ListItem>
                   <asp:ListItem Value="No">No</asp:ListItem>                   
                   </asp:RadioButtonList>
                  
                </dd>
            </dl>
            <div id="divNewRate" runat="server" visible="false">
             <dl>
                <dt>
                    <label>
                        Effectivity Date</label></dt>
                <dd>
                   <uc1:usrDate ID="usrEffectivityDate" ValidationGroup="occupation" runat="server" IsNotLessThanToday="true"></uc1:usrDate>
                  
                </dd>
            </dl>
            
             <dl>
                <dt>
                    <label>
                        New Rate</label></dt>
                <dd>
                    <asp:TextBox ID="txtNewRate" runat="server" MaxLength="5"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rfvNewRate" runat="server" ControlToValidate="txtNewRate"
                        ErrorMessage="Enter new rate." Display="Dynamic" ValidationGroup="occupation"></asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="revNewRate" runat="server" ControlToValidate="txtNewRate"
                        ErrorMessage="Rate is not valid." ValidationGroup="occupation" ValidationExpression="^[0-9]+(\.[0-9]{1,2})?$"></asp:RegularExpressionValidator>
                </dd>
            </dl>
            </div>
            <dl>
                <dt>
                    <label>
                        Status</label></dt>
                <dd>
                    <asp:CheckBox ID="chkStatus" runat="server" />
                </dd>
            </dl>
             <dl>
                <dt>
                    <label>
                        Auth Code</label></dt>
                <dd>
                    <asp:TextBox ID="txtAuthCode" runat="server" TextMode="Password" MaxLength="12" Width="150px"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rfvAuthCode" runat="server" ControlToValidate="txtAuthCode"
                        ErrorMessage="Enter auth code." ValidationGroup="carcapacity"></asp:RequiredFieldValidator>
                </dd>
            </dl>
        </fieldset>
        <fieldset class="action">
            <asp:ImageButton OnClientClick="javascript:return confirm('Are you sure to go back?');"
                ID="ibtBack" runat="server" CssClass="left_btn" ImageUrl="~/Provider/images/buttons/back1.gif"
                OnClick="ibtBack_Click" />
            <asp:ImageButton ID="ibtSubmit" CssClass="float_btn" ValidationGroup="occupation"
                runat="server" ImageUrl="~/Provider/images/buttons/submit1.gif" OnClick="ibtSubmit_Click" />
            <asp:ImageButton ID="btnNew" CssClass="floatnext_btn" runat="server" OnClientClick="return confirm('Are you sure to clear form?');" ImageUrl="~/Provider/images/buttons/new1.gif"
                OnClick="btnNew_Click" />
            <asp:ImageButton ID="btnDelete" CssClass="floatnext_btn" runat="server"  OnClientClick="return confirm('Are you sure you want to remove this record?');" ImageUrl="~/Provider/images/buttons/delete1.gif"
                OnClick="btnDelete_Click" />
        </fieldset>
        <asp:Label ID="lblMessage" runat="server" CssClass="successmsg" Text=""></asp:Label>
    </div>
</asp:Content>
